package com.cy.stone.system.infrastructure.database.entity;

import com.cy.stone.common.base.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 使用者资讯表 实体类。
 *
 * @author Wings
 * @since 2023-12-10
 */
@Data(staticConstructor = "create")
@Schema(name = "使用者资讯表")
@Table(value = "ST_USER")
@EqualsAndHashCode(callSuper = true)
public class UserEntity extends BaseEntity {

    /**
     * 用户名【唯一索引】
     */
    @Schema(description = "用户名【唯一索引】")
    @Column(value = "USER_NAME")
    private String userName;

    /**
     * 真实姓名
     */
    @Schema(description = "真实姓名")
    @Column(value = "REAL_NAME")
    private String realName;

    /**
     * 手机号
     */
    @Schema(description = "手机号")
    @Column(value = "MOBILE")
    private String mobile;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    @Column(value = "EMAIL")
    private String email;

    /**
     * 身份证
     */
    @Schema(description = "身份证")
    @Column(value = "ID_NO")
    private String idNo;

    /**
     * 用户类型
     */
    @Schema(description = "用户类型")
    @Column(value = "USER_TYPE")
    private String userType;

    /**
     * 性别【性别 0-男 1-女】
     */
    @Schema(description = "性别【性别 0-男 1-女】")
    @Column(value = "SEX")
    private String sex;
}
